package com.example.guardian.client.message;

import com.example.guardian.client.message.model.MessageModel;

/**
 * 事务消息service
 *
 * @author gang.wang 2021/10/13
 */
public interface TransactionMessageService {

    /**
     * 初始化消息存储
     */
    public boolean initPreMessage(MessageModel messageModel);

    /**
     * 确认发送消息
     */
    public boolean confirmSendMessage(String messageId);

    /**
     * 确认消费消息
     */
    public boolean confirmConsumerMessage(String messageId);
}